package hub.cathome.mapper;

import hub.cathome.entity.ShotBlog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component("shotBlogMapper")
public interface ShotBlogMapper {
    int insertShotBlog(ShotBlog shotBlog);
    int updateShotBlog(ShotBlog shotBlog);
    int deleteShotBlog(Integer id);
    ShotBlog getShotBlogById(Integer id);
    List<Integer> getShotBlogIdByUserId(Integer userId);
    List<ShotBlog> getShotBlogByUserId(Integer userId);
    List<ShotBlog> getAllShotBlog();
    List<ShotBlog> getSome(@Param("begin") Integer begin,@Param("limit") Integer limit);
    int getShotBlogCount();
}
